﻿@{
    Layout = null;
}


<html>
<head>
<title>悠点后台管理</title>
<!--                       CSS                       -->
<!-- Reset Stylesheet -->
<link rel="stylesheet" href="/content/resources/css/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="/content/resources/css/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="/content/resources/css/invalid.css" type="text/css" media="screen" />
<!--                       Javascripts                       -->
<!-- jQuery -->
<script type="text/javascript" src="/scripts/jquery-1.7.1.js"></script>
<!-- jQuery Configuration -->
<script type="text/javascript" src="/content/resources/scripts/simpla.jquery.configuration.js"></script>
<!-- Facebox jQuery Plugin -->
<script type="text/javascript" src="/content/resources/scripts/facebox.js"></script>
<!-- jQuery WYSIWYG Plugin -->
<script type="text/javascript" src="/content/resources/scripts/jquery.wysiwyg.js"></script>
    <script>
        $(document).ready(function () {
           
            $(".button").click(function () {
                $.post("/AdminLogin/UserLogin", { UserName: $("input[name='UserName']").val(), UserPassword: $("input[name='UserPassword']").val() }, function (dataResult) {
                   
                    if (!dataResult.Result) {
                        $("#messages").html("<div> " + dataResult.Messages + " </div>");
                        $("#messages").css("display", "table");
                    }
                    else {
                        location.href = "/AdminLogin/Index";
                    }
                })
            });
        })

    </script>
</head>
    
<body id="login" style="background-color:#000000">
<div id="login-wrapper" class="png_bg">
  <div id="login-top">
    <h1>悠点后台管理</h1>
    
    <a href="http://www.ud2002.com"><img id="logo" src="/content//image/logo.png" alt="UD2002.COM" /></a> </div>
  <div class="clear"></div>
  <div id="login-content">
      <div style="display:none;" id="messages" class="notification information png_bg">
        <div></div>
      </div>
      <form action="#" method="post">
      <p> 
        <label>用 户 名</label>
        <input name="UserName" class="text-input" type="text" />
      </p>
      <div class="clear"></div>
      <p>
        <label>登陆密码</label>
        <input name="UserPassword" class="text-input" type="password" />
      </p>
      
      <div class="clear"></div>
      <p>
        <input class="button" type="button" value=" 登 陆 " />
      </p>
    </form>
  </div>
     <div class="clear"></div>
  <!-- End #login-content -->
</div>
<!-- End #login-wrapper -->
</body>
</html>
